package com.joysuch.wwyt.core.service.impl;

import com.joysuch.wwyt.core.service.BaseRoleDataAuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class DataSecurityCacheFactory {


    @Autowired
    private BaseRoleDataAuthService baseRoleDataAuthService;

    @PostConstruct
    private void init() {
        baseRoleDataAuthService.initAllRoleDepartCache();
    }
}
